import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

//用户登陆
export function login(data) {
  return request({
    url: '/login/accountPasswordLogin' + transFormValue(data),
    method: 'post'
  })
}
//用户注销
export function logout() {
  return request({
    url: '/login/logout',
    method: 'post'
  })
}
//验证码登录
export function loginPhoneCodeLogin() {
  return request({
    url: '/login/phoneCodeLogin',
    method: 'post'
  })
}

// 重置密码
export function userResetPassword(data){
  return request({
    url: '/user/resetPassword' + transFormValue(data),
    method: 'post'
  })
}
